﻿@using Common
@model Param_AdminUser

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>管理员详情</title>
    <link href="https://cdn.staticfile.org/layui/2.7.6/css/layui.css" rel="stylesheet">

    <style>
        .layui-row {
            margin-left: 8px;
        }

        .layui-col-xs12 > p {
            padding: 7px 0 7px 20px;
        }

            .layui-col-xs12 > p > label > span {
                font: bold 14px;
            }
        .layui-row img {
            width: 110px;
            position: absolute;
            top: 10px;
            left: 210px;
            cursor: zoom-in;
        }
    </style>
</head>
<body>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-xs12" style="margin:10px 0;">
                <img onclick="openimg('@(Tools.HeadImg+Model.HeadImg)')" src="@(Tools.HeadImg+Model.HeadImg)" alt="@Model.HeadImg" />
                @*layui-icon-left*@
                @*<h3 style="margin-bottom:10px;"><b></b></h3>*@
                <p><label>用户名：<span>@Model.AdminName</span></label></p>
                <p><label>密码：<span>@Model.PassWord</span></label></p>
                <p><label>昵称：<span>@Model.NickName</span></label></p>
                <p><label>头像：<span>@Model.HeadImg</span></label></p>
                <p><label>创建时间：<span>@Model.CreateTime.Value.ToLongDateString()</span></label></p>
                <p><label>启用状态：<span class='layui-btn layui-btn-xs layui-btn-primary @(Model.IsEnable.Value ? "layui-border-green" : "layui-border-black")'>@(Model.IsEnable.Value ? "启用" : "禁用")</span></label></p>
                <p><label>是否超管：<span class='layui-btn layui-btn-xs layui-btn-primary @(Model.Power.Value ? "layui-border-green" : "layui-border-black")'>@(Model.Power.Value ? "超级管理员" : "普通管理员")</span></label></p>
            </div><br />

        </div>
    </div>
    <script src="https://cdn.staticfile.org/layui/2.7.6/layui.js"></script>
    <script src="~/Scripts/jquery-3.3.1.min.js"></script>
    <script src="~/Scripts/tools.js"></script>
    <script>
        //$(function () {
        //    $(".layui-row img").click(function () {
        //        let img = $(".layui-row img").attr("src");
        //        openimg(`${img}`);
        //    })
        //})
    </script>
</body>
</html>
